#{extends 'CRUD/layout.html' /}

<div id="crudShow" class="${type.name}">
	
	<h2 id="crudShowTitle">&{'crud.show.title', type.modelName}</h2>
	
	<div class="objectForm">
	#{form action:@save(object.id), enctype:'multipart/form-data'}
		#{crud.form}
			#{crud.custom 'keywords'}
				#{crud.longtextField name:'keywords', value:(object ? object.keywords : null), cols:50, rows:5/}
			#{/crud.custom}
			#{crud.custom 'description'}
				#{crud.longtextField name:'description', value:(object ? object.description : null), cols:50, rows:5/}
			#{/crud.custom}
			#{crud.custom 'footer'}
				#{crud.longtextField name:'footer', value:(object ? object.footer : null), cols:50, rows:5/}		
			#{/crud.custom}
		#{/crud.form}
		<p class="crudButtons">
			<input type="submit" name="_save" value="&{'crud.save', type.modelName}" />
		</p>
	#{/form}
	</div>

</div>